package com.designer.events
{
	import flash.events.Event;

	public class ToolChangeEvent extends Event
	{
		public var shape:String;
		public var lineColor:Number;
		public var lineThickness:Number;
		public var lineAlpha:Number;
		public var fillColor:Number;
		public var fillAlpha:Number;
		public var data:ToolDetails;
		
		public function ToolChangeEvent(type:String, data:ToolDetails) {
			super(type);
			shape = data.shape;
			data = data;
			lineColor = data.lineColor;
			lineThickness = data.lineThickness;
			lineAlpha = data.lineAlpha;
			fillColor = data.fillColor;
			fillAlpha = data.fillAlpha;
		}
		
		override public function clone():Event {
	        return new ToolChangeEvent(type, data);
	    }

	}
}